# Author:Lin Mengshi
# 课程表优化版本

now_time = time.strftime("%Y-%m-%d %A %H:%M", time.localtime())
today_weekday = time.strftime("%A", time.localtime())
print("当前时间是：",now_time)
print("今天是周几：",today_weekday)
print("-"*50)

user_data = "RasiLam"
user_password = "940328"
count = 3

class Ture:
    pass

while Ture:
    username = input("请输入正确账户名称:")
    password = input("请输入正确密码:")
    count -=1

    if username == user_data:
       if password == user_password:
           print("登录成功，欢迎",username,"体验~")
           print("本学期课程表呈现")
           import datetime
       else:
            if count == 0:
               print("你的账号被锁定了欸，1分钟后再尝试叭")
               break
            else:
               print("你的账号或密码不正确，请重新输入，你还有", count, "次机会")
    else:
        if count == 0:
            print("你的账号被锁定了欸，1分钟后再尝试叭")
            break
        else:
            print("你的账号或密码不正确，请重新输入，你还有", count, "次机会")

if today_weekday == "Monday":
    print("今天只有1节课！")
elif today_weekday == "Tuesday":
    print("你能撑住满课！")
elif today_weekday == "Wednesday":
    print("痛苦周三，忍忍就过完啦！")
elif today_weekday == "Thursday":
    print("今天=周五！")
elif today_weekday == "Friday":
    print("YEAH!纵享预留假期~")
else:
    print("放假啦！")

time = datetime.datetime.today().weekday()
week_time = int(time)
if week_time == 0:
               print("8-10 python语言 许志超 2实-203");
elif week_time == 1:
               print("1-3 用户体验 宋歌 3实-312");
               print("4-5 毛泽东思想和中国特色社会主义理论体系概论实践 张锦标 9教-207");
               print("8-9 网站运营与管理 胡美香 3实-304");
               print("12-13 大学英语 杨木清 10教-405")
elif week_time == 2:
               print("1-2 排球 张建伟 西区排球场");
               print("3-5 品牌策划 高凯 7教-205");
               print("12-14 创业基础实践 张保磊 1教-205")
elif week_time == 3:
               print("4-5 大学英语 杨木清 10教-405");
               print("4-5 广告文案写作 罗希 1教-303")
elif week_time == 4:
               print("开启你的周末时光~");
else:
               print("周六、周日");
               print("HAVE FUN！")
t = time.localtime()

# 课表查询
today = int(input('weekday:'))
if today == 0:
    print('周一只有1节课');
    floor = 1
    while floor == 1:
        course = input('请输入你想查看的课程：')
        if course == '8-10':
            print('Python')
            print('许志超')
        place = input('输入课程查看你的教室:')
        if place == 'python':
            print('2实-203')
            break

# 课表提醒
t = time.localtime()
if t.tm_wday == 0:
    if t.tm_hour == 14 and t.tm_min == 00:
                       print('还有三十分钟就上课啦，抓紧时间去教室占座！')
    elif t.tm_wday == 1:
                   if t.tm_hour == 7 and t.tm_min == 45:
                       print('还有十五分钟就上课啦，抓紧时间去教室占座')
                   elif t.tm_hour == 10 and t.tm_min == 25:
                       print('只有十分钟就要上课了，辛苦赶路啦~')
                   elif t.tm_hour == 14 and t.tm_min == 00:
                       print('还有三十分钟就上课啦，抓紧时间去教室占座')
                   elif t.tm_hour == 18 and t.tm_min == 25:
                       print('还有二十分钟就上课啦，抓紧时间去教室占座')
    elif t.tm_wday == 2:
                   if t.tm_hour == 7 and t.tm_min == 45:
                       print('慢慢走去场地叭~')
                   elif t.tm_hour == 9 and t.tm_min == 30:
                       print('慢慢走去教室叭~')
                   elif t.tm_hour == 18 and t.tm_min == 25:
                       print('还有二十分钟就上课啦，抓紧时间去教室占座')

    elif t.tm_wday == 3:
                   if t.tm_hour == 10 and t.tm_min == 15:
                       print('还有二十分钟就上课啦，抓紧时间去教室占座')
                   elif t.tm_hour == 14 and t.tm_min == 00:
                       print('还有三十分钟就上课啦，抓紧时间去教室占座')
    elif t.tm_wday == 4:
                       print('注意劳逸结合哈')
    elif t.tm_wday == 5:
                   print('注意劳逸结合哈')
    elif t.tm_wday == 6:
                   print('收心准备开启新的一周啦！')
